<?php
$localhost='localhost';
$user='admin';
$password='';
$database='lottery';
$connect=mysqli_connect($localhost,$user,$password,$database);
if(!$connect){
    die('Connection Failed!').mysqli_connect_error($connect);
}
else{
    echo('Connection Success!');
}
?>